<?php

declare(strict_types=1);

/**
 * @Author:     Frank
 * @contact     frank_hhm@163.com
 * @Date:       2022-12-05 17:18:44
 * @Last Modified time: 2022-12-05 19:46:27
 */
namespace addon\alioss\event;

use addon\alioss\services\AliossService;

/**
 * 云上传方式
 */
class Put
{
    /**
     */
    public function handle($param)
    {
        if(sysconf('oss_type') !== 'alioss'){
            return [];
        }
        $alioss = new AliossService();
        $result = $alioss->putFile($param);
        return $result;
    }
}